package cn.ljy.quicksnip.model.query;

import cn.ljy.authority.model.SysCustomer;
import cn.ljy.authority.model.SysHairdresser;
import cn.ljy.authority.model.SysShop;
import cn.ljy.quicksnip.model.QsAppointment;
import cn.ljy.quicksnip.model.QsProject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;

@ApiModel(value = "预约订单查询条件")
@Data
@NoArgsConstructor
public class QsAppointmentQuery extends QsAppointment {

    @ApiModelProperty(value = "创建时间起始范围", example = "2023-01-01 12:00:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeQueryOfBegin;

    @ApiModelProperty(value = "创建时间截止范围", example = "2023-01-01 12:00:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeQueryOfEnd;

    @ApiModelProperty(value = "预约类型：1线下 2线上", example = "1")
    private Integer appointType;

    @ApiModelProperty(value = "预约理发日期", example = "2024-01-01")
    private java.sql.Date appointDate;

    @ApiModelProperty(value = "预约状态：0已申请 1预约成功 2预约失败", example = "0")
    private Integer appointStatus;

    @ApiModelProperty(value = "付款状态：0未付款 1已付款 2已退款", example = "0")
    private Integer payStatus;

    @ApiModelProperty(value = "客户", example = "1")
    private SysCustomer customer;

    @ApiModelProperty(value = "理发师", example = "1")
    private SysHairdresser hairdresser;

    @ApiModelProperty(value = "店铺", example = "1")
    private SysShop shop;

    @ApiModelProperty(value = "理发项目", example = "1")
    private QsProject project;

    @ApiModelProperty(value = "订单备注模糊查询", example = "无")
    private String remarkLike;
}